package com.demo.thread.controller.student;


import com.demo.thread.service.student.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLException;

@RestController
@RequestMapping("/student")
public class StudentController {

    @Autowired
    private IStudentService studentService;

    @RequestMapping("/saveStudent")
    public void saveStudent(){
        studentService.saveStudent();
    }

    @RequestMapping("/saveStudentUpgrade")
    public void saveStudentUpgrade() throws SQLException {
        studentService.saveStudentUpgrade();
    }

}
